package com.dm.flyweight.demo01;

/**
 * ConcreteFlyweight
 * @author Administrator
 *
 */
public class OwnCharacter implements Glyph{
	
	private static OwnCharacter character = new OwnCharacter();
	
	private OwnCharacter(){
		
	}
	
	public static OwnCharacter getInstance(){
		return character;
	}

	/**
	 * 内部状态
	 */
	public String alph = "";
	
	@Override
	public void draw(GlyphContext context) {
		context.content.append(alph);
	}

	/**
	 * @param point 外部状态  位置 
	 * @param context 外部状态，上下文
	 */
	@Override
	public void intersects(String point, GlyphContext context) {
		
	}

}
